home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / comm / www / UrbCedWWW.readme < prev    next >
Encoding:
Text File  |  1998-10-31  |  17.5 KB  |  445 lines

  1. Short:    Web plugin for CED using URB
  2. Author:   dwhiting@europa.com  (Dick Whiting)
  3. Uploader: dwhiting@europa.com  (Dick Whiting)
  4. Version:  v1.0 requires CygnusEd and URB.
  5. Type:     comm/www
  6.  
  7.                  Copyright ©1998 by Dick Whiting                      
  8.  
  9.  
  10.   Standard Disclaimer: I wrote it, it works for me, I don't guarantee           
  11.   that it will do anything productive for anyone else, etc. etc. ;-)            
  12.  
  13.   HOWEVER, if you do find a use for it: I homeschool my kids and they would
  14.   love a postcard from where EVER you live. My daughter just started Spanish
  15.   lessons, so cards from Spanish speaking countries would especially be valued.
  16.  
  17.   Postcards:    Dick Whiting
  18.                 28590 S. Beavercreek Rd.
  19.                 Mulino, Oregon 97042
  20.                 USA                                                             
  21.  
  22.   Email:        Dick Whiting <dwhiting@europa.com>
  23.   Web  :        www.europa.com/~dwhiting/
  24.  
  25. Description
  26. -----------
  27.  
  28. This collection provides an HTML "builder" for CynusEd ©CygnusSoft Software,
  29. using the features provided by URB. It is highly and easily configurable to
  30. your tastes, preferences, and methods.
  31.  
  32. At the click of a button:
  33.  
  34. View the file being edited using IBrowse ©Omnipresence Intl.
  35. Import models (Main html, tables, etc.)
  36. Insert beginning and ending tags (same line, separate line options)
  37. Insert KEYWORD="" for any keywords of your choice
  38. Insert commonly used literals such as your email address.
  39. Insert filenames with correct relative pathing, IF your work environment
  40.        matches your "production" directory structure.
  41. Separate URB configured to insert 100 color values, selected by color name.
  42. Separate URB configured to insert any of the Latin-1 codes, e.g. " "
  43. Locate the matching beginning or end tag currently under the cursor.
  44. Delete the value portion of a KEY=value pair
  45. Delete the entire KEY=value pair
  46. Delete the beginning and ending tags, i.e. <B>text</B> removes the <B> pair.
  47. Delete the entire block bounded by a pair of tags.
  48. Execute your most commond CED commands.
  49.  
  50. Miscellaneous additional scripts included.
  51.  
  52. Add, modify, rearrange, or remove any quite easily using the standard URB 
  53. configuration drag&drop features.
  54.  
  55.  
  56. Requirements  
  57. ------------
  58.  
  59. CygnusEd 3.5 or 4.x Copyright © 1987-1998 CygnusSoft Software.
  60.  
  61. URB available on Aminet as URB.lha in util/misc.
  62.  
  63. The view and other functions are currently setup for IBrowse1.22, but could 
  64. be easily modified for other browsers assuming the Arexx commands are available.
  65.  
  66. The script GetPicSize uses Visage - By Magnus Holmgren available on Aminet.
  67.  
  68. FILES INCLUDED IN THIS ARCHIVE:
  69.  
  70.    Colors/           - directory with some *.html color tables.             
  71.    Grabs/            - directory with some screen grabs of UCW.
  72.    Models/           - directory for models i.e. HTML page, Table, etc.            
  73.    ReadMe            - comments and requirements for UrbCedWWW
  74.    Rexx/             - directory containing the Arexx scripts for CED4.x.
  75.    Rexx35/           - directory containing the Arexx scripts for CED3.5.
  76.    Text/             - text files that were used to create the URBs.              
  77.    UCW.cfg           - URB configuration for main tool bar.
  78.    UCWCOLORS.cfg     - URB configuration for color values tool bar.
  79.    UCWLATIN1.cfg     - URB configuration for Latin-1 values tool bar.
  80.  
  81.  
  82. Installation
  83. ------------
  84.  
  85. This looks a lot worse than it really is:)
  86.  
  87. URB related:
  88.  
  89.  1. Unarchive directory to where you want to put it.
  90.  2. Start UrbConfig from your URB directory.
  91.  3. Select "Import Model" from the "Special" menu
  92.  4. Choose the "UCW.cfg" from the directory in step 1.
  93.  5. Select "Create New URB" from the "Special" menu
  94.  6. Name the new URB "UCW" and use the directory from step 1.
  95.  7. Click "OK" to create it and update the config with your pathing.
  96.  8. Repeat steps 3 through 7 using "UCWCOLORS.cfg" and "UCWCOLORS" for name.
  97.  9. Repeat steps 3 through 7 for "UCWLATIN1.cfg" and "UCWLATIN1" for name.
  98.  
  99. CED related:
  100.  
  101.  1. Choose submenu "Install Dos/Arexx command" from "Dos/Arexx Interface" of the
  102.     "Special" menu.
  103.  2. Enter a number (corresponds to the function keys) in the requester.
  104.  3. Enter "C:wbrun xxx:UrbCedWWW/UCW" (without quote marks) checking that:
  105.     a) WBrun is in your C: directory
  106.     b) xxx/UrbCedWWW is the directory from URB step 1.
  107.  4. Select "OK"
  108.  5. Select submenu "Save DOS/Arexx commands" from "Dos/Arexx Interface" of the
  109.     "Special" menu.
  110.  6. If you run CED on its own screen, choose:
  111.     a) "Make screen public" from the "Rendering Choices" of the "Global" menu.
  112.     b) "Save Environment" from the "Global" menu and save as the default.
  113.  7. Press the function key specified in step 2 -- the main toolbar should appear.
  114.     If you have CED on a separate screen, look for UCW on the WorkBench screen.
  115.     You will probably have to open the MUI prefs for UCW and tell it to appear
  116.     on the CED screen, using the "System" page. Select "Save" and UCW should 
  117.     move to the CED screen.
  118.  8. Press the button labeled "COLORS" and the colors toolbar will appear.
  119.     Repeat the MUI changes as necessary.
  120.  9. Press the button labeled "LATIN1" and repeat as in step 8.
  121. 10. Configure each URB using MUI and UrbConfig to get the layouts that you want. 
  122. 11. See the screen grabs of mine for placement and sizing ideas.
  123.  
  124. Arexx related:
  125.  
  126.  1. IF you have CED3.5:
  127.  
  128.     a) Rename or delete the "Rexx" directory.
  129.     b) Rename the directory "Rexx35" to "Rexx".
  130.  
  131.  2. IF you have CED4.x then just delete the Rexx35 directory.
  132.  
  133. There is one script that needs updating for the correct path to IBrowse.
  134.  
  135.  1. Open UrbCedWWW/Rexx/Main.ucwx in CED.
  136.  2. Search for "runbr="
  137.  3. Change the path TEMP:IBROWSE/IBROWSE to match your system.
  138.  4. Save it.
  139.  
  140. There is one script that needs updating for the correct path to Visage. 
  141.  
  142.  1. Open UrbCedWWW/Rexx/GetPicSize.ucwx in CED.
  143.  2. Search for viewer='UTILS:VISAGE %f INFO'
  144.  3. Change the path UTILS:VISAGE to match your system.
  145.  4. Change the line ENABLED=0 to ENABLED=1
  146.  5. Save it.
  147.  
  148.  
  149. Congratulations:) 
  150.  
  151. Beyond the initial install, you can tailor the toolbars however you wish using
  152. UrbConfig to add, delete, rearrange, etc. the buttons. Create models of HTML
  153. code that fit your needs and place them in UrbCedWWW/Models and add buttons to
  154. select them. Have fun.
  155.  
  156.  
  157. What are those scripts?
  158. -----------------------
  159.  
  160.  Note: The VIEW script does a SAVE prior to viewing the file in IBrowse. If you
  161.  don't want your original overlayed, copy it to a different name prior to using
  162.  UrbCedWWW. Good practice to have backups, anyway:)
  163.  
  164.  Note: All the scripts that insert text into a file turn "Insert Mode" on prior
  165.  to doing the inserts. They position the cursor in an appropriate place ready
  166.  for you to type still in insert mode on exiting.
  167.  
  168.  Note: All scripts that delete text use the "CUT" command. This means that you
  169.  can use "UNDO" to reverse any action. You can also use "PASTE" to insert what
  170.  was cut somewhere else.
  171.  
  172.  BldMap.ucwx
  173.  -------------
  174.    
  175.    This one requires that GetPicSize.ucwx be enabled. See above for how to do
  176.    that. It builds the statements necessary for a client-side image map. You
  177.    are asked for the filename to use as the image, how many areas to define,
  178.    whether they are arranged Horizontally or Vertically, and whether to use
  179.    Rectangles or Cirles. It works very well for the typical navigation bar. 
  180.    If you need to define asymmetrical areas or polygons, then this is not the
  181.    tool for that chore.
  182.  
  183.  CloseUCW.ucwx
  184.  -------------
  185.  
  186.    Quits all the UCW toolbars.
  187.  
  188.  DelBlock.ucwx
  189.  -------------
  190.  
  191.    Place the cursor within a tag. All text bounded by the beginning and ending
  192.    tags will be removed. Example: <B>This is some text</B> removes the tags
  193.    AND removes the text between them. Whole paragraphs, tables, etc. can be 
  194.    deleted easily this way.
  195.  
  196.    HINT: To change <B>This is some text</B> to <I>This is some text</I>
  197.    requires a few quick mouse clicks:
  198.  
  199.       1. Place cursor inside <B>
  200.       2. Click "DelBlock"
  201.       3. Click "<I>" on the toolbar
  202.       4. Click "Paste"
  203.       5. Place cursor inside <B>
  204.       6. Click "DelTag"
  205.  
  206.    This is a trivial example, but can be useful with larger chunks of text
  207.    and/or longer tags.   
  208.  
  209.  DelKV.ucwx
  210.  ----------
  211.  
  212.    Place the cursor within the KEYWORD part of a KEYWORD=VALUE pair. 
  213.    Deletes the entire pair.
  214.  
  215.  DelTag.ucwx
  216.  -----------
  217.  
  218.    Place the cursor within a tag. The beginning and ending, if present, tag
  219.    will be removed. Other tags, text, etc. not included within the tag itself
  220.    will remain. Example: <B>This is some text</B> removes JUST the <B> and </B>
  221.    NOT the "This is some text."
  222.  
  223.  
  224.  DelVal.ucwx
  225.  -----------
  226.  
  227.    Place the cursor within the VALUE part of a KEYWORD=VALUE pair. 
  228.    Deletes ONLY the value part.
  229.  
  230.  GetColor.ucwx
  231.  -------------
  232.  
  233.    Inserts color code from table produced by BldColorTable.ucwx. See below.
  234.  
  235.  GetModel.ucwx modelname/A
  236.  -------------------------
  237.  
  238.    Inserts the model specified into the current file at the cursor position.
  239.    Store your models in the Model directory as xxxxx.model and call the script
  240.    with an argument of xxxxxx. 
  241.  
  242.  GetPicSize.ucwx
  243.  ---------------
  244.  
  245.    Inserts WIDTH="xxx" and HEIGHT="xxx" for a picture. This requires Visage
  246.    by Magnus Holmgren. To use it, place the cursor in a blank where you wish
  247.    the values to be inserted. Invoke the script and the sizes for the file
  248.    on the previous SRC= statement will be inserted.
  249.  
  250.  Indent.ucwx amount/A/N
  251.  ----------------------
  252.  
  253.    Indents the selected block of text by 'amount' spaces. Includes the line
  254.    that the cursor is on. Default amount is 3 if not specified.
  255.  
  256.  Insert.ucwx string/A
  257.  --------------------
  258.  
  259.    Inserts the text specified on the argument. One level of quoting is removed
  260.    allowing you to use quote marks and apostrophes within a string.
  261.  
  262.  MatchTag.ucwx
  263.  -------------
  264.  
  265.    Place the cursor inside the beginning or ending tag. The cursor will jump to
  266.    the corresponding tag. Repeat and watch it bounce back and forth.
  267.  
  268.  Put.ucwx string/A
  269.  -----------------
  270.    
  271.    Inserts the characters specified as the argument of the script at the cursor
  272.    position. If the first character of the argument is "<" then the text is 
  273.    just inserted, otherwise a space is inserted if necessary before the string.
  274.    One level of quoting is removed from the string.
  275.    
  276.  
  277.  QueryIB.ucwx [TITLE | URL]
  278.  -------------
  279.  
  280.    Inserts the title from the current page displayed in IBrowse or
  281.    inserts the URL from the current page displayed in IBrowse.
  282.  
  283. And NOW for the BIG one:
  284.  
  285.  Main.ucwx type/A [string]
  286.  ------------------------
  287.  
  288.    type=1 inserts the second argument as <ARGUMENT></ARGUMENT> on a single line.
  289.           The cursor is positioned betweent the tags.
  290.  
  291.    type=2 does the same, but places the beginning tag on one line and the ending
  292.           tag on a second line, with a blank line between them. The cursor is
  293.           placed on the blank line.
  294.  
  295.    type=Q inserts the string with two quote marks appended to the end.
  296.           Example: Q COLOR=  inserts COLOR=""
  297.           The cursor is placed between the two quote marks.
  298.  
  299.    type=VIEW without a second argument attempts to start IBrowse with the 
  300.           current file loaded or reloaded as necessary. You must save the file
  301.           before you can view it.
  302.  
  303.    type=VIEW with a second value (or using URB's %f) attempts to view that file
  304.           using IBrowse.
  305.  
  306.    type=SRC uses the second argument to create <xxx SRC=""> type tags.
  307.          For xxx=IMG an ALT="" keyword is also inserted. 
  308.          If the GetPicSize script has been correctly modified for your system,
  309.          then the WIDTH=nnn and HEIGHT=nnn values are also inserted.
  310.          A requester opens to select a file to place in the SRC= value.
  311.  
  312.    type=FILE opens a requester for selecting a filename.
  313.  
  314.    type=HREF without a second argument inserts:  <A HREF=""></A>
  315.              
  316.         with second argument of:
  317.  
  318.         FILE opens a requester for a file name and inserts the appropriate line.
  319.         HTTP inserts:  <A HREF="http://"></A>
  320.         NAME inserts:  <A NAME=""></A>
  321.         #REF inserts:  <A HREF="#"></A> 
  322.         MAIL inserts:  <A HREF="mailto:?subject="></A>
  323.         FTP  inserts:  <A HREF="ftp://"></A>
  324.  
  325.         In each case the cursor is positioned in the first place needing text
  326.         entered, e.g. the email address for mailto: 
  327.  
  328.    type=COMMENT inserts: <!--  -->
  329.  
  330.    type=DOC32 inserts a HTML 3.2 comment line.     
  331.  
  332.  
  333. Extra scripts:   
  334.  
  335.  BldColors.ucwx
  336.  --------------
  337.  
  338.    This one generates an HTML table of colors. To use it, construct a file
  339.    with one 6 digit hex color code as the last word on each line. You can
  340.    have whatever preceding the code as you wish. Open the file in CED and 
  341.    start the script. The file is edited into a table that can be included
  342.    in a standard HTML layout. Save it somewhere and QUIT to keep your 
  343.    original file.
  344.  
  345.  BldColorTable.ucwx colorcode filename [shade [ur ug ub [lr lg lb]]
  346.  ------------------------------------------------------------------
  347.  
  348.    Generates an HTML page with a table of colors. A couple examples of the 
  349.    output produced are in the Colors directory. Basically, you specify the 
  350.    6 digit hex color code for a color to appear in the center of the table.
  351.    Varying intensities of that color are displayed across that row, with the
  352.    amount to vary them controllable from the script. The colors are varied 
  353.    upward from your original by a factor, such as making each row above the 
  354.    center one redder. Similar control is specified for rows below the central
  355.    one. The end result is a 9x9 grid of related colors, with their hex value
  356.    codes showing as links. Copy the "url" to the clipboard and use the 
  357.    GetColor.ucwx script to paste it into your html. See the script comments 
  358.    for more information on how it works.
  359.  
  360.    To run it, open a CLI, change directory to where the script is located.
  361.    Leave it in the same directory tree as the distribution. Then do:
  362.  
  363.          rx BldColorTable.ucwx colorcode filename [other arguments]
  364.  
  365.    The table is saved in the UrbCedWWW/Colors directory.
  366.  
  367. Future
  368. ------
  369.  
  370. If you have any suggestions, please email me. Also, if you create what you consider
  371. the ideal configuration for these, I'd be interested in receiving the config files.
  372.  
  373.  
  374.  
  375. Dick Whiting
  376. September 23, 1998
  377.  
  378.  
  379. ============================= Archive contents =============================
  380.  
  381. Original  Packed Ratio    Date     Time    Name
  382. -------- ------- ----- --------- --------  -------------
  383.     5828    1062 81.7% 26-Sep-98 01:40:22 +bluegreen.html
  384.     7180    1479 79.4% 24-Sep-98 01:28:20 +Colors_random.html
  385.     5828    1098 81.1% 24-Sep-98 01:28:02 +lavenders.html
  386.     5828    1201 79.3% 24-Sep-98 01:28:32 +olives.html
  387.      628     251 60.0% 23-Sep-98 02:43:26 +Grabs.info
  388.    15891   15891  0.0% 24-Sep-98 01:05:48 +UCW.closed.gif
  389.    22031   22031  0.0% 24-Sep-98 01:06:20 +UCW.open.gif
  390.      628     246 60.8% 15-Sep-98 17:41:54 +Colors.info
  391.       24      24  0.0% 23-Sep-98 22:07:34 +font.model
  392.      227     116 48.8% 24-Sep-98 01:00:04 +form.model
  393.      564     213 62.2% 24-Sep-98 00:51:48 +frame.model
  394.      497     298 40.0% 15-Sep-98 17:45:04 +html.model
  395.      290     130 55.1% 24-Sep-98 00:38:38 +map.model
  396.      163      91 44.1% 24-Sep-98 01:00:44 +table.model
  397.    14305    5642 60.5% 29-Sep-98 20:52:04 +ReadMe
  398.      628     253 59.7% 14-Sep-98 23:08:20 +Models.info
  399.      734     449 38.8% 24-Sep-98 01:28:54 +colortable.model
  400.     8623    2368 72.5% 02-Oct-98 00:56:58 +BldColorTable.ucwx
  401.     1091     367 66.3% 29-Sep-98 23:41:24 +Insert.ucwx
  402.    10214    2543 75.1% 29-Sep-98 23:41:32 +Main.ucwx
  403.     1485     463 68.8% 29-Sep-98 23:41:40 +MatchTag.ucwx
  404.     1055     359 65.9% 29-Sep-98 23:42:00 +QueryIB.ucwx
  405.      951     252 73.5% 29-Sep-98 23:39:52 +CloseUCW.ucwx
  406.     2301     636 72.3% 29-Sep-98 23:45:18 +DelBlock.ucwx
  407.     1974     622 68.4% 29-Sep-98 23:40:32 +DelVal.ucwx
  408.     1382     442 68.0% 29-Sep-98 23:40:38 +GetColor.ucwx
  409.     1031     364 64.6% 29-Sep-98 23:40:46 +GetModel.ucwx
  410.     1243     450 63.7% 29-Sep-98 23:41:16 +Indent.ucwx
  411.     1315     455 65.3% 29-Sep-98 23:41:52 +Put.ucwx
  412.      628     254 59.5% 24-Sep-98 01:17:34 +Rexx.info
  413.     1712     624 63.5% 29-Sep-98 23:39:20 +BldColors.ucwx
  414.     3690    1205 67.3% 29-Sep-98 23:39:44 +BldMap.ucwx
  415.     2268     641 71.7% 29-Sep-98 23:40:12 +DelKV.ucwx
  416.     2080     581 72.0% 29-Sep-98 23:40:22 +DelTag.ucwx
  417.     3510    1199 65.8% 29-Sep-98 23:52:14 +GetPicSize.ucwx
  418.    14354    2624 81.7% 23-Sep-98 17:51:54 +UCWCOLORS.cfg
  419.    10990    1599 85.4% 23-Sep-98 17:52:22 +UCWLATIN1.cfg
  420.     8615    2358 72.6% 02-Oct-98 00:58:38 +BldColorTable.ucwx
  421.     2456     662 73.0% 29-Sep-98 23:43:26 +DelBlock.ucwx
  422.     1245     451 63.7% 29-Sep-98 23:44:28 +Indent.ucwx
  423.    10233    2555 75.0% 29-Sep-98 23:44:44 +Main.ucwx
  424.      628     253 59.7% 22-Sep-98 22:53:36 +Text.info
  425.     1443     760 47.3% 20-Sep-98 19:34:06 +literals.txt
  426.     3282    1444 56.0% 25-Sep-98 19:26:46 +rgb.txt
  427.     9791    2590 73.5% 29-Sep-98 22:24:50 +UCW.cfg
  428.     1701     620 63.5% 29-Sep-98 23:42:34 +BldColors.ucwx
  429.      951     252 73.5% 29-Sep-98 23:42:58 +CloseUCW.ucwx
  430.     1384     444 67.9% 29-Sep-98 23:44:02 +GetColor.ucwx
  431.     1033     367 64.4% 29-Sep-98 23:44:10 +GetModel.ucwx
  432.     1093     366 66.5% 29-Sep-98 23:44:34 +Insert.ucwx
  433.     1631     513 68.5% 29-Sep-98 23:44:50 +MatchTag.ucwx
  434.     1057     361 65.8% 29-Sep-98 23:45:04 +QueryIB.ucwx
  435.      628     251 60.0% 29-Sep-98 20:42:18  UrbCedWWW.info
  436.      628     253 59.7% 29-Sep-98 23:28:16 +Rexx35.info
  437.     3692    1207 67.3% 29-Sep-98 23:42:48 +BldMap.ucwx
  438.     2419     660 72.7% 29-Sep-98 23:43:36 +DelKV.ucwx
  439.     2235     612 72.6% 29-Sep-98 23:43:48 +DelTag.ucwx
  440.     2148     647 69.8% 29-Sep-98 23:43:54 +DelVal.ucwx
  441.     3514    1202 65.7% 29-Sep-98 23:52:30 +GetPicSize.ucwx
  442.     1317     456 65.3% 29-Sep-98 23:44:56 +Put.ucwx
  443. -------- ------- ----- --------- --------
  444.   216295   87807 59.4% 21-Oct-98 04:16:40   60 files
  445.